package com.study.kt._00test.gson

import com.google.gson.GsonBuilder

fun main() {
    testNumberFormat()
}

fun testNumberFormat() {
    val str = "{\"name\":\"fauks\",\"age\":\"\"}"
    val gson = GsonBuilder()
        .registerTypeAdapter(Int::class.java, IntAdapter())
        .create()

    val user = gson.fromJson(str, User::class.java)
    println(user)
}
